<template>
<view>
    <view class="cu-list grid " :class="['col-' + gridCol]">
		<block v-for="(info,index) in list" :key="index">
			<view v-if="info.isShow" class="cu-item" @click="jumpview(index,info)" @longpress.stop="longtap($event,info,index)">
			    <image class="myimg" :src="info.img"></image>
			    <text>{{info.name}}</text>
			</view>
		</block>
    </view>
</view>
</template>

<script>
export default {
    name: 'ListBox',
    data() {
        return {
            modalName: null,
            gridCol: uni.getStorageSync('gridCol') || 3,
            gridBorder: uni.getStorageSync('gridBorder') || false,
        }
    },
    props: {
        list: Array,
        default: []
    },
    computed: {
    },
    mounted() {
    },
    methods: {
        jumpview(index,info) {
            this.$emit('jumpview', index,info)
        },
		longtap(e,info,index) {
			// console.log(e);
			this.$emit('zylongtap',e,info,index)
		}
    },
}
</script>

<style lang="scss">

</style>